package day0728;

public class GenderTest {
    public static void main(String[] args) {
        Gender  g=  Gender.woman;
        //判断如果变量g中保存的是man，则打印"男"
        switch (g){
            case man:System.out.println("男"); break;
            case woman:System.out.println("女"); break;
        }
    }
}